﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BillWeeklyList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Reconciliations.BillWeeklyList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Import Namespace="ZLCMS.Commands.User.Util" %>
<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>
<%=_framePage.TabInfoHtml()%>
<style type="text/css">
       .shoplist p{ line-height: 18px;word-break: break-all; word-wrap: break-word;}
</style>
<form id="pageForm" method="post" class="pageForm" runat="Server">

<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent">
        <tr>	
        <td>
			<span>起止时间&nbsp;</span>
			<asp:TextBox ID="start" runat="server" class="date" format="yyyy-MM-dd" readonly="true" cond="start"></asp:TextBox>-
			<asp:TextBox ID="end" class="date" format="yyyy-MM-dd" readonly="true" runat="server" cond="end"></asp:TextBox>
		</td>
		<td colspan="5">
			<span>账单状态&nbsp;</span>
			<asp:dropdownlist runat="server" ID="status" cond="status">
                <asp:ListItem value="-1">--请选择--</asp:ListItem>
                <asp:ListItem  value="0">未处理</asp:ListItem>
                <asp:ListItem  value="1">处理中</asp:ListItem>
                <asp:ListItem  value="9">已完成</asp:ListItem>
            </asp:dropdownlist>&nbsp;&nbsp;
		</td>
        <% if (AllRight)
           { %>
        <td>
			<span>商家&nbsp;</span>
            </td><td>
			<asp:dropdownlist runat="server" ID="DeptCode" cond="deptcode" class="combox"></asp:dropdownlist>
		</td>
        <%} %>
		</tr>
		</table>
		
	    <div class="subBar">
			<ul>

			<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>查询</span></a>
			</li>
           <%-- <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>--%>

			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
        </ul>
	</div>
	<div class="tableList" layoutH="118">
	<table class="list shoplist" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
			    <th width="12%">账单时间</th>
			    <th width="15%">商家名称</th>
                                
				<th width="6%">销售金额</th>
                <th width="6%">结算金额</th>

                <th width="6%">补差价</th>
                <th width="6%">应付金额</th>
                <th width="6%">已支付金额</th>
                <% if (AllRight)
                    { %>
                <th width="6%">盈利</th>
                <%} %>

				<th width="6%">状态</th>
				<th width="10%">备注</th>
                <th width="15%">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid">
               
				    <td><%# Convert.ToDateTime(Eval("BeginDate")).ToShortDateString()%> 至 <%#Convert.ToDateTime(Eval("EndDate")).ToShortDateString()%></td>
                    <td><%# ParamKit.GetValue("SysDepartmentInfo", Eval("DeptCode"), "--")%>(<%# Eval("DeptCode")%>)</td>

                    <td>
                       <%# Eval("TotalFee")%>
                    </td>
                      
                     <td>
                       <%# Eval("FinalTotalFee")%>
                    </td>
                    <td>
                       <%# Eval("FillFee")%>
                    </td>
                    <td>
                       <%# Eval("NeedPayFee")%>
                    </td>
                    <td>
                       <%# Eval("PaidFee")%>
                    </td>
                     <% if (AllRight)
                        { %>
                     <td>
                       <%# Eval("IncomeFee")%>
                    </td>
                    <%} %>
				    <td>
				        <%# (string)Eval("Status") == "0" ? " <font color='red'>未处理</font>" : ((string)Eval("Status") == "1" ? "<font color='yellow'>处理中</font>" : "<font color='green'>已完成</font>")%>
				    
                    </td>
                    <td><%# Eval("Memo")%></td>

                    <td>
                    <%if (ChangeStatusRight)
                      {%>
                     <a href="/SystemManage/Basics/Shop/Reconciliations/BillWeeklyDetail.aspx?bno=<%# Eval("Id")%>&dc=<%#Eval("DeptCode") %>&freshtabid=<%= _framePage.NavTabId %>"  target="navTab" rel="BillDetail" title="帐单-处理">查看</a>&nbsp;&nbsp;
                     <a href="/SystemManage/Basics/Shop/Reconciliations/BillPaymentDetail.aspx?bwno=<%# Eval("BillWeeklyNo")%>&dc=<%#Eval("DeptCode") %>&freshtabid=<%= _framePage.NavTabId %>"  target="navTab" rel="BillPaymentDetail" title="帐单-支付">支付</a>&nbsp;&nbsp;
                     <%} %>
                    <a href="/SystemManage/Basics/Shop/Reconciliations/BillPaymentList.aspx?bno=<%# Eval("BillWeeklyNo")%>&deptcode=<%#Eval("DeptCode") %>&freshtabid=<%= _framePage.NavTabId %>"  target="navTab" rel="BillPaymentList" title="帐单-支付流水">支付流水</a>&nbsp;&nbsp;
                    <a href="/SystemManage/Basics/Shop/Reconciliations/BillDailyList.aspx?deptcode=<%#Eval("DeptCode") %>&start=<%#Eval("BeginDate") %>&end=<%#Eval("EndDate") %>&freshtabid=<%= _framePage.NavTabId %>"  target="navTab" rel="BillDailyList" title="帐单-帐单日统计">帐单日统计</a>
                    </td>
				    
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>